{extend name="public:base"}
{block name='css'}
<link href="__PUBLIC__/css/plugins/iCheck/custom.css" rel="stylesheet">
{/block}
{block name="js"}
<script src="__PUBLIC__/js/plugins/peity/jquery.peity.min.js"></script>
<script src="__PUBLIC__/js/content.min.js?v=1.0.0"></script>
{/block}
{block name='body'}
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">

        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>用户组</h5>
						<a href="{:url('add')}" class="btn btn-sm btn-primary pull-right m-t-n-xs">添加用户组</a>
                    </div>
                    <div class="ibox-content">
                        <table class="table table-hover">
                            <thead>
                                <tr>
                                    <th>名称</th>
                                    <th>添加时间</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
								{foreach name="list" item="li"}
                                <tr>
                                    <td>{$li.title}</td>
                                    <td>{$li.time|date="Y-m-d H:i:s",###}</td>
                                    <td>
										<a href="{:url('save',array('id'=>$li['id']))}" class="btn btn-primary btn-xs edit"><i class="fa fa-edit"></i> 编辑</a>
	                                    <a href="javascript:;" onclick="return del({$li.id});" class="btn btn-danger btn-xs delete"><i class="fa fa-trash-o"></i> 删除</a>
									</td>
                                </tr>
								{/foreach}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        
    </div>

    
</body>
{/block}
